package com.cxs.observer.simple;

import com.cxs.observer.simple.impl.SFObServerImpl;
import com.cxs.observer.simple.impl.STOObServerImpl;

/**
 * @Author: cxs
 */
public class ObServerTest {


    public static void main(String[] args) {
        MainSubject subject = new MainSubject();
        new SFObServerImpl(subject);
        new STOObServerImpl(subject);
        subject.setPrice(99D);
    }
}
